class NewsTagLib {
	def cloud = {
		def tags = Tag.listOrderByName()
		def total = tags.size()
		if(total>0)
			tags.each{ tag ->
				def max = 5
				int tagSize = new java.math.BigDecimal(tag.total()/total*max).intValue()
				out << g.link(controller:'new',action:'filter',params:[tag:tag.name],class:"tag${tagSize}"){tag.name}+ " "
			}
	}
}
